package com.example.blogapi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.blogapi.domain.MsArticle;
import com.example.blogapi.domain.dos.Archives;
import com.example.blogapi.vo.ArticleVo;
import com.example.blogapi.vo.Result;
import com.example.blogapi.vo.param.ArticleParam;
import com.example.blogapi.vo.param.PageParam;

import java.util.List;

/**
* @author 13723
* @description 针对表【ms_article】的数据库操作Service
* @createDate 2022-10-20 15:21:07
*/
public interface MsArticleService extends IService<MsArticle> {

    List<ArticleVo> listArticlesPage(PageParam pageParam);


    List<ArticleVo> getHotArticles(int limit);

    List<ArticleVo> getNewArticles(int limit);

    List<Archives> listArchives();

    ArticleVo findArticleById(Long id);

    Result publish(ArticleParam articleParam);
}
